//
//  MJHiCarHeader.m
//  HiCar
//
//  Created by 丁一 on 2018/12/26.
//  Copyright © 2018 丁一. All rights reserved.
//

#import "MJHiCarHeader.h"

@implementation MJHiCarHeader

- (void)prepare{
    [super prepare];
    
    NSMutableArray *idleImages = [NSMutableArray array];
    for (int i = 0; i<=23; i++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"load%i",i]];
        [idleImages addObject:image];
    }
    [self setImages:idleImages forState:MJRefreshStateIdle];
    
    
    NSMutableArray *refreshingImages = [NSMutableArray array];
    for (int i = 0; i<=23; i++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"load%i",i]];
        [refreshingImages addObject:image];
    }
    [self setImages:refreshingImages forState:MJRefreshStatePulling];
    
    [self setImages:refreshingImages forState:MJRefreshStateRefreshing];
}

@end
